import request from 'utils/requests'
import { func } from 'prop-types';

// 获取划词信息
export function getWordData(payload: any) {
  return request.get(`/getwords/${payload}`)
}

// 获取划词拼音
export function getWordSpell(payload: any) {
  return request.get(`/getwords/converpinyin/${payload}`)
}

// 创建划词
export function createWordData(payload: any) {
  return request.post(`/getwords/addword`, payload)
}

// 编辑划词
export function editWordData(id, payload: any) {
  return request.post(`/getwords/updateword/${id}`, payload)
}

// 输入提示
export function getPromptData(payload: any) {
  return request.get(`/getwords/words/${payload}`)
}
